package com.jueming.cashbook.business.controller;

import com.jueming.cashbook.business.service.UserService;
import com.jueming.cashbook.common.response.R;
import com.jueming.cashbook.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/get-user-list")
    public R getUserList(){
        List<SysUser> list = userService.getUserList();
        return R.SUCCESS(list);
    }
}
